The varchar (max), nvarchar (max), and varbinary (max) data types are added to SQL Server 2005.
Shard data type (large-value data types) , Marked with the Max specifier. The varchar (max), nvarchar (max), and varbinary (max) data types correspond
This article describes in detail the performance and space occupied by varchar (n) and nvarchar (n) in SQL. For more information, see.
This article describes in detail the performance and space occupied by varchar (n) and nvarchar (n) in SQL. For
Microsoft SQL Server 2005 introducesMaxDescription. This specifier is enhancedVarchar,NvarcharAndVarbinaryData storage capability.Varchar (max),Nvarchar (max)AndVarbinary (max)It is collectively referred to as the big value data type. You can use
nvarchar (max) length test: Text length can exceed the upper limit of 8000 after using convert to force type conversions.and the maximum length of nvarchar (max) can reach 2^31The following is the validation sql:Declare @A nvarchar (max) set
How to explain N in varchar (N) and nvarchar (n: Nvarchar (n) can store up to nCharacter, Does not distinguish between Chinese and English. Varchar (n) can store up to n Bytes, A Chinese character is two bytes.
Space occupied:A single nvarchar (n)
Ext.: http://blog.csdn.net/jackychu/article/details/4183118Http://www.cnblogs.com/jhxk/articles/1633578.htmlMany developers in the database design often do not have much to consider char, varchar type, some do not pay attention to, because the
In Ms sql2005 and later versions, the sequence data types (varchar (max), nvarchar (max), and varbinary (max) are added )). The Bytes data type can store up to 2 ^ 30-1 bytes of data.
These data types are behavior and small data
In SQL Server, smaller data can be stored using varchar (n), nvarchar (n), and varbinary (n) types, storing large data, using varchar (max), nvarchar (max), and varbinary (max ) Instead of the text, ntext, and image data types.whichvarchar (max)
In Ms sql2005 and later versions, the sequence data types (varchar (max), nvarchar (max), and varbinary (max) are added )). The Bytes data type can store up to 2 ^ 30-1 bytes of data.
These data types are behavior and small data
If you really need a nvarchar (max) SQL storage space, remember to add. Customtype ("Stringclob")Demo:Map (x = x.contentmanifest). Customtype ("Stringclob"). Customsqltype ("nvarchar (max)"); Map (x = x.contentmanifest). Lenght (10000); Both of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.